<div class="form-group col-xs-12">
    <div class="row">
        <include file="template:label" label="[label]"/>
        <div class="col-xs-9">
            <input id="[name]" name="[name]" onkeyup ="keypress(this)"  class="form-control" type="number" value="[value]" placeholder="[label]" [attr]>
        </div>
    </div>
    <script>
        function keypress(_this){
            if(_this.value.indexOf(".")!=-1){
                _this.value = _this.value.replace(_this.value.substr(_this.value.indexOf('.')+3),'');
            }
        }
    </script>
</div>